package com.huaishushu.service;

import com.huaishushu.entity.ShoppingCart;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 购物车 服务类
 * </p>
 *
 * @author ChiBaoBaoHuaiShuShu
 * @since 2023-05-28
 */
public interface IShoppingCartService extends IService<ShoppingCart> {

    /**
     * 添加购物车
     * @param shoppingCart
     * @return
     */
    ShoppingCart add(ShoppingCart shoppingCart);

    /**
     * 查询当前用户购物车内的商品信息
     * @return
     */
    List<ShoppingCart> listShoppingCart();

}
